<template>
  <div class="index">
    <router-view ></router-view>
    <div class="bottom-black"></div>
    <van-tabbar v-model="active" active-color="#ee0a24">
      <van-tabbar-item  to="/shop"  >
        <span>首页</span>
        <template #icon>
          <i class="iconfont icon-gouwu" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item  to="/shop/sort">
        <span>分类</span>
        <template #icon>
          <i class="iconfont icon-yingyong" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item  to="/shop/cart" >
        <span>购物车</span>
        <template #icon>
          <i class="iconfont icon-gouwuche" />
        </template>
      </van-tabbar-item>
      <van-tabbar-item badge="5"  to="/shop/my">
        <span>我的</span>
        <template #icon>
          <i class="iconfont icon-wodedamaijihuo" />
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "index",
  data() {
    return {
      active: 0,
      icon: {
        active: "https://img01.yzcdn.cn/vant/user-active.png",
        inactive: "https://img01.yzcdn.cn/vant/user-inactive.png",
      },
    };
  },
};
</script>

<style lang="scss" scoped>
.index{
  height: 100%;
  .bottom-black{
    height: 50px;
  }


}
</style>

